package com.chenfan.process.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chenfan.process.entity.po.ProcessRelatedPo;

/**
 * @author K
 * @date 2021/3/4
 */
public interface ProcessRelatedService extends IService<ProcessRelatedPo> {
    ProcessRelatedPo findHead(Long approvalTemplateId, Long version);

    List<ProcessRelatedPo> listProcessRelatedWithTemplate(List<Long> approvalTemplateIds);

    List<ProcessRelatedPo> listProcessRelatedAfterProcessId(Long approvalTemplateId, Long version, Long processId);

    List<ProcessRelatedPo> listProcessRelatedAfterProcessId(Long approvalTemplateId, Long version, Long processId,Long groupId);

    List<ProcessRelatedPo> listWithGroup(Long approvalTemplateId, Long version, Long groupId);
}
